<?php
/**
 * Created by PhpStorm.
 * User: TC
 * Date: 2015/10/22
 * Time: 20:17
 */

set_error_handler(my_err,E_WARNING);

function my_err($err, $errStr) {
    echo $err;
    echo $errStr;
}